use std::fs;

use anyhow::Result;
fn main() -> Result<()> {
    fs::create_dir_all("src/pb")?;
    let build = tonic_build::configure();
    build.out_dir("src/pb").compile_protos(
        &[
            "../protos/notification/notification.proto",
            "../protos/notification/rpc.proto",
        ],
        &["../protos/notification"],
    )?;
    Ok(())
}
